﻿using System.Data;
using LibDataLayer;

namespace LibBusinessLayer
{
    public class BllCategories
    {
        #region[Get-Data]
        public DataTable GetCatalogMain(string keywords)
        {
            return DalCategories.GetCatalogMain(keywords);
        }
        public DataTable GetCatalogMainEdit(int id)
        {
            return DalCategories.GetCatalogMainEdit(id);
        }
        public DataTable GetCatalogMainFillterStatus(int IsActive)
        {
            return DalCategories.GetCatalogMainFillterStatus(IsActive);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(DTOCategories obj)
        {
            return DalCategories.Insert(obj); 
        }
        public static bool Update(DTOCategories obj)
        {
            return DalCategories.Update(obj);
        }
        public static bool Delete(DTOCategories obj)
        {
            return DalCategories.Delete(obj);
        }
        public static bool UpdateNum(DTOCategories obj)
        {
            return DalCategories.UpdateNum(obj);
        }
        public static bool UpdateCheck(DTOCategories obj)
        {
            return DalCategories.UpdateCheck(obj);
        }
        #endregion

        #region[Get-Data-HomePage]
        public DataTable GetCatalogMainHomePage(string keywords)
        {
            return DalCategories.GetCatalogMainHomePage(keywords);
        }
        #endregion
    }
}